package BigDecimal;

import java.math.BigDecimal;

public class BigDecimaldemo3 {
    public static void main(String[] args) {
        BigDecimal b1 = new BigDecimal("1.1");
        BigDecimal b2 = new BigDecimal("1.2");
        System.out.println(b1.subtract(b2));//减法运算
        System.out.println(b1.multiply(b2));//乘法运算
        System.out.println(b1.add(b2));//加



    }
}
